import { Injectable } from '@angular/core';
import { HttpProvider } from '../http/http';


@Injectable()
export class ApiProvider {
  // 接口地址
  public SERVICE_ADRESS: string = '../www/assets/json/';
  // public SERVICE_ADRESS: string = '../assets/json/';
  constructor(public http: HttpProvider) {
  }

  // 首页数据
  getHome() {
    let url: string = this.SERVICE_ADRESS + 'home.json';
    return this.http.request('GET', url);
  }
}
